Component({
  data: {
    selected: 0,
    color: "#A5A5A5",
    selectedColor: "#141124",
    list: [
      {
        pagePath: "/pages/index/index",
        iconPath: "/static/icon/home.png",
        selectedIconPath: "/static/icon/home_select.png",
        text: "剧首"
      },
      {
        pagePath: "/pages/cate/cate",
        iconPath: "/static/icon/cate.png",
        selectedIconPath: "/static/icon/cate_select.png",
        text: "剧类"
      },
      {
        pagePath: "/pages/add/add",
        iconPath: "/static/icon/add2.png",
        selectedIconPath: "/static/icon/add2.png",
        text: "添加"
      },
      {
        pagePath: "/pages/circle/circle",
        iconPath: "/static/icon/interesting.png",
        selectedIconPath: "/static/icon/interesting_select.png",
        text: "剧有趣"
      },
      {
        pagePath: "/pages/my/my",
        iconPath: "/static/icon/my.png",
        selectedIconPath: "/static/icon/my_select.png",
        text: "我的剧"
      }]
  },
  attached() { },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({
        url
      })
    }
  }
})